{extend name="public/base"}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/admin/css/news.css" media="all" />
{/block}


{block name="main"}
<body class="childrenBody">
<blockquote class="layui-elem-quote">
    <form class="layui-form" action="?">
        <div class="layui-inline">
            <a class="layui-btn layui-btn-normal Add_btn" data-url="{:url('xydzp_prize_save', ['xydzp_id' => $xydzp_id])}">添加奖品</a>
        </div>
        <div class="layui-inline">
            <div class="layui-form-mid layui-word-aux">当前大转盘为：xxxx大转盘</div>
        </div>
    </form>
</blockquote>
<div class="layui-form news_list">
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col>
            <col width="9%">
            <col width="9%">
            <col width="9%">
            <col width="9%">
            <col width="35%">
        </colgroup>
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
            <th>奖品名称</th>
            <th>奖品图片</th>
            <th>启用状态</th>
            <th>中奖几率</th>
            <th>奖品剩余</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="news_content">
            {volist name="data" id="vo"}
            <tr>
                <td><input type="checkbox" name="" lay-skin="primary" lay-filter="choose"></td>
                <td>{$vo.name}</td>
                <td><img src="/{$vo.img}" /> </td>
                <td class="save_field">
                    {eq name="vo.status" value="1"}
                        <a href="javascript:;" data-url="{:url('save_status', ['id' => $vo['id'], 'value' => '2'])}" data-title="禁用该品牌？" class="layui-btn layui-btn-mini">启用</a>
                    {else /}
                        <a href="javascript:;" data-url="{:url('save_status', ['id' => $vo['id'], 'value' => '1'])}" data-title="启用该品牌？" class="layui-btn layui-btn-mini layui-btn-danger">禁用</a>
                    {/eq}
                </td>
                <td>{$vo.probability}</td>
                <td>{$vo.num}</td>
                <td>
                    <a class="layui-btn layui-btn-normal layui-btn-mini Add_btn" data-url="{:url('xydzp_prize_save', ['id' => $vo.id])}">编辑</a>
                    <a href="javascript:;"  class="layui-btn layui-btn-mini">删除</a>
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div id="page"></div>
{/block}

{block name="javascript"}
{/block}